def decorator(fn):
    def innner(*args, **kwargs):
        print("执行中....")
        num = fn(*args, **kwargs)
        return num

    return innner


@decorator
def sumFun(num1, num2):
    sum = num1 + num2
    print("sum:", sum)


@decorator
def sumFunmax(*args, **kwargs):
    sum = 0
    for value in args:
        sum += value
    for value in kwargs.values():
        sum += value
    print("sum:", sum)
    return sum


sumFun(1, 2)
sumFunmax(10, 20, 100, a=500)
